Optimal. Leaf size=74 \[ \frac {\tanh ^{-1}\left (\frac {a+b \coth ^2(x)}{\sqrt {a+b} \sqrt {a+b \coth ^4(x)}}\right )}{2 (a+b)^{3/2}}-\frac {a-b \coth ^2(x)}{2 a (a+b) \sqrt {a+b \coth ^4(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {3751, 1262,
755, 12, 739, 212} \begin {gather*} \frac {\tanh ^{-1}\left (\frac {a+b \coth ^2(x)}{\sqrt {a+b} \sqrt {a+b \coth ^4(x)}}\right )}{2 (a+b)^{3/2}}-\frac {a-b \coth ^2(x)}{2 a (a+b) \sqrt {a+b \coth ^4(x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 212
Rule 739
Rule 755
Rule 1262
Rule 3751
Rubi steps
\begin {align*} \int \frac {\coth (x)}{\left (a+b \coth ^4(x)\right )^{3/2}} \, dx &=\text {Subst}\left (\int \frac {x}{\left (1-x^2\right ) \left (a+b x^4\right )^{3/2}} \, dx,x,\coth (x)\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{(1-x) \left (a+b x^2\right )^{3/2}} \, dx,x,\coth ^2(x)\right )\\ &=-\frac {a-b \coth ^2(x)}{2 a (a+b) \sqrt {a+b \coth ^4(x)}}+\frac {\text {Subst}\left (\int \frac {a}{(1-x) \sqrt {a+b x^2}} \, dx,x,\coth ^2(x)\right )}{2 a (a+b)}\\ &=-\frac {a-b \coth ^2(x)}{2 a (a+b) \sqrt {a+b \coth ^4(x)}}+\frac {\text {Subst}\left (\int \frac {1}{(1-x) \sqrt {a+b x^2}} \, dx,x,\coth ^2(x)\right )}{2 (a+b)}\\ &=-\frac {a-b \coth ^2(x)}{2 a (a+b) \sqrt {a+b \coth ^4(x)}}-\frac {\text {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\frac {-a-b \coth ^2(x)}{\sqrt {a+b \coth ^4(x)}}\right )}{2 (a+b)}\\ &=\frac {\tanh ^{-1}\left (\frac {a+b \coth ^2(x)}{\sqrt {a+b} \sqrt {a+b \coth ^4(x)}}\right )}{2 (a+b)^{3/2}}-\frac {a-b \coth ^2(x)}{2 a (a+b) \sqrt {a+b \coth ^4(x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.37, size = 73, normalized size = 0.99 \begin {gather*} \frac {1}{2} \left (\frac {\tanh ^{-1}\left (\frac {a+b \coth ^2(x)}{\sqrt {a+b} \sqrt {a+b \coth ^4(x)}}\right )}{(a+b)^{3/2}}-\frac {a-b \coth ^2(x)}{a (a+b) \sqrt {a+b \coth ^4(x)}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 3.04, size = 431, normalized size = 5.82
method | result | size |
derivativedivides | \(\frac {b \left (-\frac {\coth ^{3}\left (x \right )}{4 a \left (a +b \right )}+\frac {\coth ^{2}\left (x \right )}{4 a \left (a +b \right )}-\frac {\coth \left (x \right )}{4 a \left (a +b \right )}-\frac {1}{4 \left (a +b \right ) b}\right )}{\sqrt {\left (\coth ^{4}\left (x \right )+\frac {a}{b}\right ) b}}-\frac {-\frac {\arctanh \left (\frac {2 b \left (\coth ^{2}\left (x \right )\right )+2 a}{2 \sqrt {a +b}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}\right )}{2 \sqrt {a +b}}+\frac {\sqrt {1-\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \EllipticPi \left (\coth \left (x \right ) \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, -\frac {i \sqrt {a}}{\sqrt {b}}, \frac {\sqrt {-\frac {i \sqrt {b}}{\sqrt {a}}}}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}}\right )}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}}{2 \left (a +b \right )}+\frac {b \left (\frac {\coth ^{3}\left (x \right )}{4 a \left (a +b \right )}+\frac {\coth ^{2}\left (x \right )}{4 a \left (a +b \right )}+\frac {\coth \left (x \right )}{4 a \left (a +b \right )}-\frac {1}{4 \left (a +b \right ) b}\right )}{\sqrt {\left (\coth ^{4}\left (x \right )+\frac {a}{b}\right ) b}}-\frac {-\frac {\arctanh \left (\frac {2 b \left (\coth ^{2}\left (x \right )\right )+2 a}{2 \sqrt {a +b}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}\right )}{2 \sqrt {a +b}}-\frac {\sqrt {1-\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \EllipticPi \left (\coth \left (x \right ) \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, -\frac {i \sqrt {a}}{\sqrt {b}}, \frac {\sqrt {-\frac {i \sqrt {b}}{\sqrt {a}}}}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}}\right )}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}}{2 \left (a +b \right )}\) | \(431\) |
default | \(\frac {b \left (-\frac {\coth ^{3}\left (x \right )}{4 a \left (a +b \right )}+\frac {\coth ^{2}\left (x \right )}{4 a \left (a +b \right )}-\frac {\coth \left (x \right )}{4 a \left (a +b \right )}-\frac {1}{4 \left (a +b \right ) b}\right )}{\sqrt {\left (\coth ^{4}\left (x \right )+\frac {a}{b}\right ) b}}-\frac {-\frac {\arctanh \left (\frac {2 b \left (\coth ^{2}\left (x \right )\right )+2 a}{2 \sqrt {a +b}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}\right )}{2 \sqrt {a +b}}+\frac {\sqrt {1-\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \EllipticPi \left (\coth \left (x \right ) \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, -\frac {i \sqrt {a}}{\sqrt {b}}, \frac {\sqrt {-\frac {i \sqrt {b}}{\sqrt {a}}}}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}}\right )}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}}{2 \left (a +b \right )}+\frac {b \left (\frac {\coth ^{3}\left (x \right )}{4 a \left (a +b \right )}+\frac {\coth ^{2}\left (x \right )}{4 a \left (a +b \right )}+\frac {\coth \left (x \right )}{4 a \left (a +b \right )}-\frac {1}{4 \left (a +b \right ) b}\right )}{\sqrt {\left (\coth ^{4}\left (x \right )+\frac {a}{b}\right ) b}}-\frac {-\frac {\arctanh \left (\frac {2 b \left (\coth ^{2}\left (x \right )\right )+2 a}{2 \sqrt {a +b}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}\right )}{2 \sqrt {a +b}}-\frac {\sqrt {1-\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \sqrt {1+\frac {i \sqrt {b}\, \left (\coth ^{2}\left (x \right )\right )}{\sqrt {a}}}\, \EllipticPi \left (\coth \left (x \right ) \sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}, -\frac {i \sqrt {a}}{\sqrt {b}}, \frac {\sqrt {-\frac {i \sqrt {b}}{\sqrt {a}}}}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}}\right )}{\sqrt {\frac {i \sqrt {b}}{\sqrt {a}}}\, \sqrt {a +b \left (\coth ^{4}\left (x \right )\right )}}}{2 \left (a +b \right )}\) | \(431\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1947 vs.
\(2 (63) = 126\).
time = 0.59, size = 3938, normalized size = 53.22 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth {\left (x \right )}}{\left (a + b \coth ^{4}{\left (x \right )}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\mathrm {coth}\left (x\right )}{{\left (b\,{\mathrm {coth}\left (x\right )}^4+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________